package main

import (
	"Demo03/part05/FuncUser"
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {
	r := gin.Default()

	r.LoadHTMLGlob("part05/templates/**/*")
	r.StaticFS("/s", http.Dir("part05/static"))

	r.GET("/", FuncUser.Hello01)
	r.POST("/getUserInfo", FuncUser.Hello02)

	r.POST("/ajaxpost", FuncUser.Hello03)
	r.Run()
}
